package com.haifeng.asms.auth.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * <p>
 *  Security配置项
 * </p>
 *
 * @author: Haifeng
 * @date: 2020-06-22
 */
@Data
@ConfigurationProperties(prefix = "system.security")
public class SecurityProperties implements Serializable {


    /**
     * 不需要登录认证的资源
     */
    private Set<String> noLoginUrls = new HashSet<>();

    /**
     * 登录提交路径
     */
    private String loginUrl = "/api/login";

    /**
     * 退出登录提交路径
     */
    private String logoutUrl = "/api/logout";

    /**
     * cookies中存储的session id
     */
    private String cookies = "JSESSIONID";
}
